<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:92:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/index/index.html";i:1508326380;s:93:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/title.html";i:1506496282;s:91:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/css.html";i:1503480029;s:94:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/header.html";i:1507617957;s:92:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/menu.html";i:1508228255;s:94:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/topbar.html";i:1507540206;s:90:"/Applications/mampstack/apache2/htdocs/cps/public/../application/index/view/public/js.html";i:1506499226;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo (isset($title) && ($title !== '')?$title:"趁早CPS自助发布系统"); ?></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="AdminDesigns">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="/static/vendor/bootstrap/css/bootstrap.min.css">

<!-- Theme CSS -->
<link rel="stylesheet" type="text/css" href="/static/css/vendor.css">
<link rel="stylesheet" type="text/css" href="/static/css/theme.css">
<link rel="stylesheet" type="text/css" href="/static/css/utility.css">
<link rel="stylesheet" type="text/css" href="/static/css/custom.css">

<!-- Favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico">
    <style>
        .table a { color: blue;}
        dl, li { list-style:none;}
        .panel-body dt, .panel-body dd { float: left;}
        .clear {clear: both;}
        .panel-body dt { width: 7%;}
        .panel-body dd { width: 90%;}
        .panel-body dd li { float: left; min-width: 6%; padding: 0 10px;}
        .form-horizontal { padding-left: 30px;}
        .select { color: #7857ca; font-weight: bold;}
        tr img { max-width: 140px; max-height: 140px;}
    </style>
</head>
<body class="dashboard-page">

<header class="navbar navbar-fixed-top">
    <div class="navbar-branding" style="width: 400px;">
        <span id="toggle_sidemenu_l" class="glyphicons glyphicons-show_lines"></span>
        <a class="navbar-brand" href="javascript:;">
            <img src="/static/img/logo.png" />
            <span style="font-size: 12px; font-size: 16px; margin-left: 15px;">趁早CPS自助发布系统</span>
        </a>
    </div>
    <div class="navbar-right">
        <div class="navbar-menus">
            <div class="btn-group" id="alert_menu" style="max-width: 300px;">
                <div class="media" style="float: left;">
                    <a class="pull-left dropdown-toggle" href="#"  data-toggle="dropdown">
                        <div class="media-object border border-purple br64 bw2 p2">
                            <img class="br64" src="<?php echo \think\Session::get('cps_user_head_img'); ?>" style="max-width: 45px;">
                        </div>
                    </a>
                </div>
                <button type="button" class="dropdown-toggle" data-toggle="dropdown" style="float: left;">
                    <?php echo \think\Session::get('cps_user_name'); ?> ▼
                </button>
                <ul class="dropdown-menu media-list" role="menu" style="min-width: 100px;">
                    <li class="p15 pb10">
                        <ul class="list-unstyled">
                            <li><a href="/index/login/login_out">退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</header>

<!-- Start: Main -->
<div id="main">

    <!-- Start: Sidebar -->
    <aside id="sidebar_left">
        <div class="sidebar-menu">
            <!--菜单-->
            <ul class="nav">
    <li
        <?php if(\think\Request::instance()->controller() == 'Index'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/index">
            <span class="glyphicons glyphicons-show_big_thumbnails"></span>
            <span class="sidebar-title">单条内容推广</span>
        </a>
    </li>
    <!--<li
        <?php if(\think\Request::instance()->controller() == 'Gather'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/gather">
            <span class="glyphicons glyphicons-show_thumbnails"></span>
            <span class="sidebar-title">内容集合推广</span>
        </a>
    </li>-->
    <li
        <?php if(\think\Request::instance()->controller() == 'Channellist'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/channelList">
            <span class="glyphicons glyphicons-list"></span>
            <span class="sidebar-title">渠道列表</span>
        </a>
    </li>
    <li
        <?php if(\think\Request::instance()->controller() == 'Statistics'): ?>
            class="active"
        <?php endif; ?>
    >
        <a href="/index/statistics">
            <span class="glyphicons glyphicons-charts"></span>
            <span class="sidebar-title">收益统计</span>
        </a>
    </li>
</ul>
        </div>
    </aside>

    <!-- Start: Content -->
    <section id="content_wrapper">
        <div id="topbar">
            <!--所在-->
            <div class="topbar-left">
    <ol class="breadcrumb">
        <li class="crumb-active"><a href="javascript:;"><?php echo $header_name; ?></a></li>
        <?php if(!empty($header_info)): ?>
        <li class="crumb-link"><a href="javascript:;"><?php echo $header_info; ?></a></li>
        <?php endif; ?>
    </ol>
</div>


        </div>
        <div id="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel">
                        <div class="panel-body">
                            <ul>
                                <li id="classify-lists">
                                    <?php if(is_array($classifys) || $classifys instanceof \think\Collection || $classifys instanceof \think\Paginator): $i = 0; $__LIST__ = $classifys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$classify): $mod = ($i % 2 );++$i;?>
                                    <dl>
                                        <dt><?php echo $classify['name']; ?>：</dt>
                                        <dd>
                                            <ul>
                                                <li><a href="javascript:;" ajax-id="<?php echo $classify['id']; ?>" <?php if($classifyid == $classify['id']): ?>class="select"<?php endif; ?>>全部</a></li>
                                                <?php if($classify['son']): if(is_array($classify['son']) || $classify['son'] instanceof \think\Collection || $classify['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $classify['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i;?>
                                                <li><a href="javascript:;" ajax-id="<?php echo $son['id']; ?>" <?php if($classifyid == $son['id']): ?>class="select"<?php endif; ?>><?php echo $son['name']; ?></a></li>
                                                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                                            </ul>
                                        </dd>
                                    </dl>
                                    <dl class="clear"></dl>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </li>
                            </ul>
                            <form class="form-horizontal" action="" method="get" id="form1">
                                <div class="form-group" style="margin-bottom: 0;">
                                    <div class="col-lg-5" style="line-height: 30px;">
                                        <span style="width: 25%; float: left;">
                                            <div style="float: left;">排序：</div>
                                            <select class="form-control input-sm" style="width: 80%; float: left;" name="order">
                                                <option value="1" <?php if($order == 1): ?>selected="selected"<?php endif; ?>>发布时间由新到旧</option>
                                                <option value="2" <?php if($order == 2): ?>selected="selected"<?php endif; ?>>收益由大到小</option>
                                            </select>
                                        </span>
                                        <input name="search_title" value="<?php echo $search_title; ?>" class="form-control input-sm" type="text" placeholder="名称" style="width: 20%; float: left; margin: 0 20px;" />
                                        <input type="hidden" name="classifyid" id="classifyid" value="<?php echo $classifyid; ?>" />
                                        <button type="submit" id="sub" class="btn btn-alert">搜索</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="panel">
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-bordered">
                                    <thead>
                                    <tr>
                                        <th width="240">内容名称</th>
                                        <th width="200">推广banner</th>
                                        <th width="220">内容分类</th>
                                        <th>内容售价</th>
                                        <th>推广收益</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php if(is_array($lists) || $lists instanceof \think\Collection || $lists instanceof \think\Paginator): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?>
                                    <tr>
                                        <td>
                                            <a href="<?php echo $li['h5_link']; ?>" target="_blank"><?php echo $li['title']; ?></a>
                                        </td>
                                        <td>
                                            <img src="<?php echo $li['banner']; ?>" />
                                            <a href="/index/index/download/course_id/<?php echo $li['id']; ?>">下载</a>
                                        </td>
                                        <td><?php echo $li['classify_name']; ?></td>
                                        <td><?php echo $li['price']; ?>元</td>
                                        <td><?php echo $li['generalize_earning']; ?>元</td>
                                        <td>
                                            <a href="<?php echo $li['generalize_link']; ?>" target="_blank">查看推文</a> | <a href="/index/index/create_content/course_id/<?php echo $li['id']; ?>">我要推广</a>
                                        </td>
                                    </tr>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </tbody>
                                </table>
                                <?php echo $page; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </section>

</div>
<!-- End #Main -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

<!-- jQuery -->
<script type="text/javascript" src="/static/vendor/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/static/vendor/jquery/jquery_ui/jquery-ui.min.js"></script> <!-- Bootstrap -->
<script type="text/javascript" src="/static/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Flot Plugins -->
<script type="text/javascript" src="/static/vendor/plugins/jqueryflot/jquery.flot.min.js"></script>

<script type="text/javascript" src="/static/js/ajax.js"></script>

<script type="text/javascript" src="/static/js/main.js"></script>
<script type="text/javascript" src="/static/system/layer/layer.js"></script>
<script type="text/javascript" src="/static/system/ajaxfileupload.js"></script>
<script type="text/javascript" src="/static/system/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/static/system/jquery.form.js"></script>
<script type="text/javascript" src="/static/system/form.js"></script>

<script type="text/javascript">
    jQuery(document).ready(function () {
        Core.init();
    });
</script>
<script>
    $(function(){
        $('#classify-lists a').click(function(){
            var id = $(this).attr('ajax-id');
            if (id) {
                $('#classifyid').val(id);
                $('#sub').click();
            }
        });
    });
</script>
</body>
</html>
